package top.twoteam.equipment.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EquipmentInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EquipmentInfoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andEquipmentidIsNull() {
            addCriterion("equipmentId is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIsNotNull() {
            addCriterion("equipmentId is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentidEqualTo(Integer value) {
            addCriterion("equipmentId =", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotEqualTo(Integer value) {
            addCriterion("equipmentId <>", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidGreaterThan(Integer value) {
            addCriterion("equipmentId >", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("equipmentId >=", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLessThan(Integer value) {
            addCriterion("equipmentId <", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLessThanOrEqualTo(Integer value) {
            addCriterion("equipmentId <=", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIn(List<Integer> values) {
            addCriterion("equipmentId in", values, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotIn(List<Integer> values) {
            addCriterion("equipmentId not in", values, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidBetween(Integer value1, Integer value2) {
            addCriterion("equipmentId between", value1, value2, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotBetween(Integer value1, Integer value2) {
            addCriterion("equipmentId not between", value1, value2, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameIsNull() {
            addCriterion("equipmentName is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameIsNotNull() {
            addCriterion("equipmentName is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameEqualTo(String value) {
            addCriterion("equipmentName =", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameNotEqualTo(String value) {
            addCriterion("equipmentName <>", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameGreaterThan(String value) {
            addCriterion("equipmentName >", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameGreaterThanOrEqualTo(String value) {
            addCriterion("equipmentName >=", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameLessThan(String value) {
            addCriterion("equipmentName <", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameLessThanOrEqualTo(String value) {
            addCriterion("equipmentName <=", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameLike(String value) {
            addCriterion("equipmentName like", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameNotLike(String value) {
            addCriterion("equipmentName not like", value, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameIn(List<String> values) {
            addCriterion("equipmentName in", values, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameNotIn(List<String> values) {
            addCriterion("equipmentName not in", values, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameBetween(String value1, String value2) {
            addCriterion("equipmentName between", value1, value2, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmentnameNotBetween(String value1, String value2) {
            addCriterion("equipmentName not between", value1, value2, "equipmentname");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeIsNull() {
            addCriterion("equipmentType is null");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeIsNotNull() {
            addCriterion("equipmentType is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeEqualTo(String value) {
            addCriterion("equipmentType =", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeNotEqualTo(String value) {
            addCriterion("equipmentType <>", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeGreaterThan(String value) {
            addCriterion("equipmentType >", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeGreaterThanOrEqualTo(String value) {
            addCriterion("equipmentType >=", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeLessThan(String value) {
            addCriterion("equipmentType <", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeLessThanOrEqualTo(String value) {
            addCriterion("equipmentType <=", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeLike(String value) {
            addCriterion("equipmentType like", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeNotLike(String value) {
            addCriterion("equipmentType not like", value, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeIn(List<String> values) {
            addCriterion("equipmentType in", values, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeNotIn(List<String> values) {
            addCriterion("equipmentType not in", values, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeBetween(String value1, String value2) {
            addCriterion("equipmentType between", value1, value2, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypeNotBetween(String value1, String value2) {
            addCriterion("equipmentType not between", value1, value2, "equipmenttype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeIsNull() {
            addCriterion("alarmType is null");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeIsNotNull() {
            addCriterion("alarmType is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeEqualTo(String value) {
            addCriterion("alarmType =", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotEqualTo(String value) {
            addCriterion("alarmType <>", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeGreaterThan(String value) {
            addCriterion("alarmType >", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) {
            addCriterion("alarmType >=", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeLessThan(String value) {
            addCriterion("alarmType <", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeLessThanOrEqualTo(String value) {
            addCriterion("alarmType <=", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeLike(String value) {
            addCriterion("alarmType like", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotLike(String value) {
            addCriterion("alarmType not like", value, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeIn(List<String> values) {
            addCriterion("alarmType in", values, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotIn(List<String> values) {
            addCriterion("alarmType not in", values, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeBetween(String value1, String value2) {
            addCriterion("alarmType between", value1, value2, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andAlarmtypeNotBetween(String value1, String value2) {
            addCriterion("alarmType not between", value1, value2, "alarmtype");
            return (Criteria) this;
        }

        public Criteria andLongtitudeIsNull() {
            addCriterion("longtitude is null");
            return (Criteria) this;
        }

        public Criteria andLongtitudeIsNotNull() {
            addCriterion("longtitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongtitudeEqualTo(Float value) {
            addCriterion("longtitude =", value, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeNotEqualTo(Float value) {
            addCriterion("longtitude <>", value, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeGreaterThan(Float value) {
            addCriterion("longtitude >", value, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeGreaterThanOrEqualTo(Float value) {
            addCriterion("longtitude >=", value, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeLessThan(Float value) {
            addCriterion("longtitude <", value, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeLessThanOrEqualTo(Float value) {
            addCriterion("longtitude <=", value, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeIn(List<Float> values) {
            addCriterion("longtitude in", values, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeNotIn(List<Float> values) {
            addCriterion("longtitude not in", values, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeBetween(Float value1, Float value2) {
            addCriterion("longtitude between", value1, value2, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLongtitudeNotBetween(Float value1, Float value2) {
            addCriterion("longtitude not between", value1, value2, "longtitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(Float value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(Float value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(Float value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(Float value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(Float value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(Float value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<Float> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<Float> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(Float value1, Float value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(Float value1, Float value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("` address` is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("` address` is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("` address` =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("` address` <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("` address` >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("` address` >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("` address` <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("` address` <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("` address` like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("` address` not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("` address` in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("` address` not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("` address` between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("` address` not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andLinktypeIsNull() {
            addCriterion("linkType is null");
            return (Criteria) this;
        }

        public Criteria andLinktypeIsNotNull() {
            addCriterion("linkType is not null");
            return (Criteria) this;
        }

        public Criteria andLinktypeEqualTo(String value) {
            addCriterion("linkType =", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeNotEqualTo(String value) {
            addCriterion("linkType <>", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeGreaterThan(String value) {
            addCriterion("linkType >", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeGreaterThanOrEqualTo(String value) {
            addCriterion("linkType >=", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeLessThan(String value) {
            addCriterion("linkType <", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeLessThanOrEqualTo(String value) {
            addCriterion("linkType <=", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeLike(String value) {
            addCriterion("linkType like", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeNotLike(String value) {
            addCriterion("linkType not like", value, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeIn(List<String> values) {
            addCriterion("linkType in", values, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeNotIn(List<String> values) {
            addCriterion("linkType not in", values, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeBetween(String value1, String value2) {
            addCriterion("linkType between", value1, value2, "linktype");
            return (Criteria) this;
        }

        public Criteria andLinktypeNotBetween(String value1, String value2) {
            addCriterion("linkType not between", value1, value2, "linktype");
            return (Criteria) this;
        }

        public Criteria andMaintainportIsNull() {
            addCriterion("maintainPort is null");
            return (Criteria) this;
        }

        public Criteria andMaintainportIsNotNull() {
            addCriterion("maintainPort is not null");
            return (Criteria) this;
        }

        public Criteria andMaintainportEqualTo(String value) {
            addCriterion("maintainPort =", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportNotEqualTo(String value) {
            addCriterion("maintainPort <>", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportGreaterThan(String value) {
            addCriterion("maintainPort >", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportGreaterThanOrEqualTo(String value) {
            addCriterion("maintainPort >=", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportLessThan(String value) {
            addCriterion("maintainPort <", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportLessThanOrEqualTo(String value) {
            addCriterion("maintainPort <=", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportLike(String value) {
            addCriterion("maintainPort like", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportNotLike(String value) {
            addCriterion("maintainPort not like", value, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportIn(List<String> values) {
            addCriterion("maintainPort in", values, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportNotIn(List<String> values) {
            addCriterion("maintainPort not in", values, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportBetween(String value1, String value2) {
            addCriterion("maintainPort between", value1, value2, "maintainport");
            return (Criteria) this;
        }

        public Criteria andMaintainportNotBetween(String value1, String value2) {
            addCriterion("maintainPort not between", value1, value2, "maintainport");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidIsNull() {
            addCriterion("lastMaintainUID is null");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidIsNotNull() {
            addCriterion("lastMaintainUID is not null");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidEqualTo(Integer value) {
            addCriterion("lastMaintainUID =", value, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidNotEqualTo(Integer value) {
            addCriterion("lastMaintainUID <>", value, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidGreaterThan(Integer value) {
            addCriterion("lastMaintainUID >", value, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("lastMaintainUID >=", value, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidLessThan(Integer value) {
            addCriterion("lastMaintainUID <", value, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidLessThanOrEqualTo(Integer value) {
            addCriterion("lastMaintainUID <=", value, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidIn(List<Integer> values) {
            addCriterion("lastMaintainUID in", values, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidNotIn(List<Integer> values) {
            addCriterion("lastMaintainUID not in", values, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidBetween(Integer value1, Integer value2) {
            addCriterion("lastMaintainUID between", value1, value2, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintainuidNotBetween(Integer value1, Integer value2) {
            addCriterion("lastMaintainUID not between", value1, value2, "lastmaintainuid");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeIsNull() {
            addCriterion("lastMaintainTime is null");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeIsNotNull() {
            addCriterion("lastMaintainTime is not null");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeEqualTo(Date value) {
            addCriterion("lastMaintainTime =", value, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeNotEqualTo(Date value) {
            addCriterion("lastMaintainTime <>", value, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeGreaterThan(Date value) {
            addCriterion("lastMaintainTime >", value, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeGreaterThanOrEqualTo(Date value) {
            addCriterion("lastMaintainTime >=", value, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeLessThan(Date value) {
            addCriterion("lastMaintainTime <", value, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeLessThanOrEqualTo(Date value) {
            addCriterion("lastMaintainTime <=", value, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeIn(List<Date> values) {
            addCriterion("lastMaintainTime in", values, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeNotIn(List<Date> values) {
            addCriterion("lastMaintainTime not in", values, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeBetween(Date value1, Date value2) {
            addCriterion("lastMaintainTime between", value1, value2, "lastmaintaintime");
            return (Criteria) this;
        }

        public Criteria andLastmaintaintimeNotBetween(Date value1, Date value2) {
            addCriterion("lastMaintainTime not between", value1, value2, "lastmaintaintime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}